home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / pcsay.arc / SAY.DOC < prev   
Text File  |  1987-02-15  |  2KB  |  28 lines

  1. SAY.COM -- by Serge Couture, PC Magazine, 11-25-86, p. 337
  2.  
  3.    SAY, among other things, may substitute for ECHO.  It will print any text
  4. characters from the command line that are enclosed within quotation marks (").
  5. If you want to echo the quotation-mark character itself, use a pair of
  6. quotation marks. If the quotation mark is the first character to be echoed,
  7. triple the quotation marks. If decimal ASCII code values are entered on the
  8. command line without embedding them within quotation marks, SAY will handle
  9. nonprintable characters. Redirection or piping characters (<,>, and |) must be
  10. represented as ASCII values (60, 62, and 124), because DOS will try to redirect
  11. or pipe a command, when it sees the actual symbols on the command line.
  12.  
  13. EXAMPLES:
  14.  
  15. STATEMENT:   SAY """Compaq?"" he asks." 13 10  "She answers ""PC AT.""" 
  16. RESULT:      "Compaq?" he asks.  
  17.              She answers "PC AT."
  18.  
  19. STATEMENT:   SAY 27 "&16D" >PRN
  20. RESULT:      Sends an Escape sequence to the printer and shows the  actual     
  21.              characters that are being sent
  22.  
  23. STATEMENT:   SAY 27 "[0;68;""CLS"";13;""DIR /P;" ";13p"
  24. RESULT:      Redefines F10 to do a clear screen and DIR /P, if you are 
  25.              using ANSI.SYS.
  26.                                                
  27. STATEMENT:   SAY 13 "DISK1" 13 "N" 13 | FORMAT B: /S /V
  28. RESULT:      Formats and names a floppy disk without any user intervention.